package com.ly.system.controller;

import com.ass.llm.chat.LLMChatAbstract;
import com.ass.llm.chat.factory.LLMFactory;
import com.ass.llm.constant.ModelEnum;
import com.ass.llm.dto.ChatInput;
import com.ass.llm.dto.ModelOut;
import com.common.core.domain.AjaxResult;
import com.common.security.utils.SecurityUtils;
import com.ly.system.service.LlmMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/llmMessage")
public class LlmMessageController {

    @Autowired
    private LlmMessageService llmMessageService;

    @PostMapping("/llmTest")
    public AjaxResult llmTest(@RequestBody ChatInput chatInput){
        String assistantContent = llmMessageService.mtdChat(chatInput);
        return AjaxResult.success(assistantContent);
    }
}
